import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token-Mobile'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const AdminLogin = 'Admin-Login-mobile'

export function getAdminLogin() { // 获取管理员登录
  return Cookies.get(AdminLogin)
}

export function setAdminLogin(adminInfo) { // 设置管理员登录
  return Cookies.set(AdminLogin, adminInfo)
}

export function removeAdminLogin() {
  return Cookies.remove(AdminLogin)
}
